//
//  JRASRManager.h
//  ASRMemo
//
//  Created by YangShuai on 16/9/26.
//  Copyright © 2016年 ys. All rights reserved.
//

#import <Foundation/Foundation.h>
#define ASRRecordDir @"FollowReadingRecords"
@interface JRASRManager : NSObject

/** 获取单例对象 */
+ (JRASRManager*)defaultManager;
/** 进行评测
  * sSentence ","隔开的句子
 */
-(void)getDetailString:(NSString *)sSentence WordArray:(NSArray*)wordArray IsBookEn:(BOOL)isBookEn Completed:(void (^)(NSInteger score,NSArray *detailArray))completed;
/** 开始录音
  * fileKey 保证录音唯一性的Key
  * 返回值为录音的相对路径(caches 文件夹下)
 */
-(NSString*)startRecordWithBookId:(NSInteger)bookId PageId:(NSInteger)pageId entenceId:(NSInteger)sentenceId RecordTimestamp:(long long)timestamp;
/** 结束录音 */
-(void)stopRecord;

/** 开始播放
  * fileKey 保证录音唯一性的Key
 */
-(void)startPlayRecordWithFullFilePath:(NSString*)fullFilePath;
/** 结束播放 */
-(void)stopPlay;

@end
